home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invisible Universe
/
Invisible Universe (1995)(Voyager)[Mac-PC].iso
/
mac
/
MOVIES
/
FIND.DIR
/
00024_Script_24
< prev
next >
Wrap
Text File
|
1995-11-13
|
1KB
|
54 lines
on doGoCode
global gBaseListFind, gBottomFind, gTopFind, gHilitedFind, gResList
global gGlossPalette
go to the frame + 1
cursor 4
updateStage
set off = gHilitedFind + gTopFind - 1
if gHilitedFind <= 0 or (off > count(gResList) and count(gResList) > 0) or off = 0 then
set t = the ticks + 20
repeat while t > the ticks
end repeat
cursor -1
go to the frame - 1
exit
end if
if count(gResList) > 0 then
set goItem = getAt(gResList, off)
else
set goItem = item 2 of line off of field (gBaseListFind - 1)
end if
if gBaseListFind = 2 then
if (char 1 of goItem = "P") and not voidP(gGlossPalette) then
tell gGlossPalette to lCloseGlossPalette
end if
goGo(goItem, 1)
exit
else
if voidP(gGlossPalette) then
createGlossPalette
end if
tell gGlossPalette to showTermCast(goItem)
tell gGlossPalette to lOpenGlossPalette
cursor -1
go to the frame - 1
exit
end if
cursor -1
go to the frame - 1
end doGoCode